package com.yufubao.framework.builder.es;

import org.elasticsearch.client.RequestOptions;

/**
 * @author 张一恒
 * @version 1.0
 * @description: es请求设置项
 * @date 2024/8/31 18:27
 */
public class RequestOptionsBuilder {


    public static final RequestOptions COMMON_OPTIONS;


    static {
        RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
//        builder.addHeader("Authorization", "Bearer " + TOKEN);
//        builder.setHttpAsyncResponseConsumerFactory(
//                new HttpAsyncResponseConsumerFactory
//                        .HeapBufferedResponseConsumerFactory(30 * 1024 * 1024 * 1024));
        COMMON_OPTIONS = builder.build();
    }

}
